package com.ai.service.made;

import com.ai.entity.made.CoalCraneInspection;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiaok
 * @since 2024-11-04
 */
public interface ICoalCraneInspectionService extends IService<CoalCraneInspection> {

    List<CoalCraneInspection> getCraneInspections(Integer id);

    /**
     * 获取当前检修的检修状态
     *
     * @param accumulatedDuration      已检修时长
     * @param cameraId               功能绑定id
     * @param functionType  功能type值
     * @return 检修状态 1检修中，2检修正常,3检修时长不足
     */
    String getMaintenanceState(Integer accumulatedDuration, String cameraId, String functionType);
}
